home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / docs / misc / MemManual.lha / MemManual / Include / memory / memerrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-01-30  |  2.0 KB  |  72 lines

  1. /*****************************************************************
  2.  ** The memory.library                                          **
  3.  **                                                             **
  4.  ** A mmu lib based virtual memory application                  **
  5.  **                                                             **
  6.  ** © 2002 THOR-Software                                        **
  7.  **                                                             **
  8.  **-------------------------------------------------------------**
  9.  ** Module: error code definitions for the memory.library       **
  10.  **             these can be received by IoErr                  **
  11.  ** Release 40.1        29.01.2002                              **
  12.  *****************************************************************/
  13.  
  14. #ifndef MEMORY_MEMERRORS_H
  15. #define MEMORY_MEMERRORS_H
  16.  
  17. /*
  18.  * The following error codes can be received by dos.library/IoErr()
  19.  * additionally to the standard result codes of dos/dos.h
  20.  * in case a memory.library function fails.
  21.  */
  22.  
  23. /* specified context has an address space already */
  24.  
  25. #define MEMERROR_DOUBLESPACE            0x400
  26.  
  27. /* the library found no/not enough virtual memory address space to put the
  28.    adress space into */
  29.  
  30. #define MEMERROR_NO_FREE_SPACE          0x401
  31.  
  32.  
  33. /* no device/hook for swapping was specified */
  34.  
  35. #define MEMERROR_NO_SWAP_HOOK           0x402
  36.  
  37.  
  38. /* virtual memory pool puddle size out of range */
  39.  
  40. #define MEMERROR_INVALID_PUDDLESIZE     0x403
  41.  
  42.  
  43. /* swap hook is in defective state */
  44.  
  45. #define MEMERROR_SWAPHOOK_BROKEN        0x404
  46.  
  47.  
  48. /* swap device run out of data */
  49.  
  50. #define MEMERROR_SWAPHOOK_EOF           0x405
  51.  
  52. /* device size is invalid */
  53.  
  54. #define MEMERROR_INVALID_DEVICESIZE     0x406
  55.  
  56. /* private swap hook w/o FIXEDSIZE */
  57.  
  58. #define MEMERROR_FLOATING_SIZE          0x407
  59.  
  60. /* tried to attach an address space to the public
  61.  * context. This does not work.
  62.  */
  63. #define MEMERROR_PUBLIC_SPACE           0x408
  64.  
  65. /* tried to attach an address space to a
  66.  * supervisor context.
  67.  */
  68. #define MEMERROR_SUPERVISOR_CTX         0x409
  69.  
  70. #endif
  71.  
  72.